package com.niiwoo.civet.account.service.dubbo.notify;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.account.dto.request.GetUnOnpenBankAccountRequestDTO;
import com.niiwoo.civet.account.service.local.notify.PersonalizedNotifyAccountLocalService;
import com.niiwoo.civet.account.service.notify.PersonalizedNotifyAccountDubboService;

@Service(version = "1.0.0")
public class PersonalizedNotifyAccountDubboServiceImpl implements PersonalizedNotifyAccountDubboService {

	@Autowired
	private PersonalizedNotifyAccountLocalService personalizedNotifyAccountLocalService;
	
	@Override
	public void openInvestmentAccountAfterUnInvestment() {
		personalizedNotifyAccountLocalService.openInvestmentAccountAfterUnInvestment();
	}
	
	@Override
	public List<String> getUnOnpenBankAccount(GetUnOnpenBankAccountRequestDTO requestDTO) {
		Assert.notEmpty(requestDTO.getUserIdList(), "用户ID列表不能为空");
		return personalizedNotifyAccountLocalService.getUnOpenBankAccount(requestDTO.getUserIdList());
	}
}